<?php
class ArticlesController extends AppController {

    function add() {                  
         if (!empty($this->data)) {
             $user = $this->Auth->user();             
             $this->data['Article']['user_id'] = $user['User']['id'];
             return parent::add();
        }
    }
    
}
       
?>